<?php
namespace app\home\model;
use think\Db;
use think\Model;

class Type extends Model{
    protected $table = 'shop_type';
    //分类展示
    function show(){
        return Db::table($this->table)->select();
    }
//    //分类添加
//    function insertData($data){
//        return Db::table($this->table)->insertGetId($data);
//    }
    //分类删除
    // function deleteData($type_id){
    // 	$data = $this->where('type_id',$type_id)->delete();
    // 	return $data;
    // }
}